#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: bulid_dummy.py 
@version:
@time: 2022/09/05 
"""
from TapDevops.build_jenkins.build_base import BuildBase2
from TapDevops.build_jenkins.v2 import *


class BuildDummy(
    BuildBase2,
    V2DummyTaskSetting
):

    # 创建task
    def task_dummy(self, _type='data_copy_initial'):
        title = ''
        path = ''
        if _type == 'source_copy':
            title = self.title_source_copy
            path = self.path_source_copy
        elif _type == 'target_copy':
            title = self.title_target_copy
            path = self.path_target_copy
        elif _type == 'source_dev':
            title = self.title_source_dev
            path = self.path_source_dev
        elif _type == 'target_dev':
            title = self.title_target_dev
            path = self.path_target_dev
        data = self.common_build(
            title,
            path
        )
        self.build(
            data
        )
